/**
 * 全局后台方法访问路径   http://127.0.0.1:8899/api/consumer/
 */
var path = "http://127.0.0.1:8899/api/consumer/"
/**
 * 全局图片访问路径    http://120.48.47.144:8899/images/
 */
var imagePath = "http://120.48.47.144:8899/images/"

$(function() {
	get_user_mess_and_token();
	//自己代码
	//所有视频类型
	vido_type();
	//所有视频
	videoAll();
	//视频排行榜
	video_ranking();
	//最新资讯
	index_information();
	//资讯轮播图
	index_information_images();
	//首页品牌
	index_brand();
	//车系
	index_levei_series(0, 0.0);
	//悬浮
	limouseover();
	//新车部分
	new_series();
})

/**
 * 查询所有视频类型
 */
function vido_type() {
	//访问消费者my_show_All方法
	$.get(path + 'Video_typeController/select_All_Video_type', function(data) {
		var str = ""
		$(data).each(function(index, item) {
			str += "<div class='floor-title_nav-item__2Oh6W'>" +
				"<a href='http://127.0.0.1:8899/html/car_video.html?" + item.video_type_id  +
				"' target='_blank' class='floor-title_label-wrap__3rslG'>" +
				"<span>" + item.video_type_name + "</span>" +
				"</a>" +
				"</div>"
		})
		str +=
			"<a href='http://127.0.0.1:8899/html/car_video.html?"  +
			"' class='floor-title_nav-item__2Oh6W floor-title_nav-more__10ex3 g-active-link-text' target='_blank'>更多</a>";
		$(".floor-title_nav-wrap__2uoyd div").remove();
		$(".floor-title_nav-wrap__2uoyd").append(str);
	}, "json");
}
////////////////////////////////////////////所有视频////////////////////////////////////////////////////////////////
var pageVideoindex = 1;
var Video_page_totll;

/**
 * 查询所有视频
 */
function videoAll() {
	$.post(path + 'VideoController/select_all_video_program/' + pageVideoindex + "/0", function(data) {
		var str = ""
		//第一个<div class='tw-flex'>管理前面四条数据
		var strs = "<div class='tw-flex'>";
		//第二个<div class='tw-flex'>管理后面四条数据
		var strs2 = "";
		var count = "";
		$(data.Pagedata).each(function(index, item) {
			/* document.write(item.video_id); */
			//时间变量
			var video_upload_date = "";

			//现在时间
			var date = new Date();
			var nowDate = "" + date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() +
				"";

			//  转换统一时间格式方便计算
			var datett = new Date(nowDate);
			var xx = new Date(item.video_upload_date);

			/**
			 * 如果小于七天，数字表示，
			 * 否则使用后台返回的时间数据
			 */
			if (parseInt((datett - xx) / (1000 * 60 * 60 * 24)) <= 20) {
				video_upload_date = parseInt((datett - xx) / (1000 * 60 * 60 * 24)) + "天前";
			} else {
				video_upload_date = item.video_upload_date;
			}

			//判断播放次数
			if (item.video_broadcast_count < 10000) {
				count = item.video_broadcast_count;
			} else if (item.video_broadcast_count < 100000000) {
				count = (Math.floor((item.video_broadcast_count / 10000) * 100) / 100) + "万";
			}
			str += "<div class='tw-flex-none tw-w-100/3 2xl:tw-w-2.5' style='padding: 6px;'>" +
				"<div class='common-card_wrapper__Inr_n tw-pb-24'>" +
				"<div> <!--节目部分-->" +
				"<a target='_blank' class='jsx-1095092229' href='http://127.0.0.1:8899/html/car_program_all_video.html?" +
				item.program.program_id  + "' rel='opener'>" +
				"<div class='tw-h-30 tw-flex tw-items-center tw-bg-white tw-px-8 tw-text-12 tw-text-common-gray tw-rounded-tl-2 tw-rounded-tr-2 hover:tw-bg-common-black hover:tw-text-common-white'>" +
				"<p class='tw-flex-1 line-1 tw-mr-6' style='color: inherit;'>" +
				"<span title='" + item.program.program_name + "'>" + item.program.program_name +
				"</span>" +
				"</p>" +
				"<div>共" + item.program.video_total + "期" +
				"<i class='DCD_Icon icon_triangle_right' style='font-size: 12px;'></i>" +
				"</div>" +
				"</div>" +
				"</a>" +
				"<div class='tw-relative tw-text-common-black' style='font-size: 0px;'> <!--视频部分-->" +
				"<a title='" + item.video_introduction +
				"' href='http://127.0.0.1:8899/html/car_video_broadcast.html?" + item.video_id +
				"' target='_blank' class='jsx-1095092229' rel='opener'>" +
				"<div class='tw-rounded-bl-2 tw-rounded-br-2 g-load-img-wrap' style='display: block; overflow: hidden; position: relative; z-index: 0;'>" +
				"<div style='display: block; box-sizing: border-box; padding-top: 56%;'></div>" +
				"<img src='http://120.48.47.144:8899/images/" + item.video_images_url + "' alt='" + item
				.video_introduction +
				"' width='250' height='140' class='zoom' style='position: absolute; inset: 0px; box-sizing: border-box; padding: 0px; border: none; margin: auto; display: block; width: 0px; height: 0px; min-width: 100%; max-width: 100%; min-height: 100%; max-height: 100%; object-fit: cover;'>" +
				"</div>" +
				"<div class='tw-w-50 tw-h-20 tw-flex tw-items-center tw-justify-center tw-rounded-2 tw-bg-black tw-bg-opacity-80 tw-text-white tw-text-12 tw-absolute tw-right-8 tw-bottom-8 tw-z-10'>" +
				"<span class='font-size-10_wrapper__pmvsT undefined' style='width: 44px; height: 10px;'>" +
				"<span class='font-size-10_inner__y3DQ4'>" +
				"<i class='DCD_Icon icon_play_1 tw-text-16 tw-mr-2'></i>10:54" +
				"</span>" +
				"</span>" +
				"</div>" +
				"</a>" +
				"</div>" +
				"<h3 class='tw-leading-22 tw-text-16 tw-font-medium tw-text-common-black tw-text-justify line-2 g-active-link-text tw-mt-12'>" +
				"<a title='" + item.video_introduction +
				"' href='http://127.0.0.1:8899/html/car_video_broadcast.html?" + item.video_id +
				"' target='_blank' class='jsx-1095092229' rel='opener'>" + item.video_introduction +
				"</a>" +
				"</h3>" +
				"<p class='tw-mt-8 tw-h-20 tw-lead tw-text-common-gray tw-text-14'>" +
				"<a title='" + item.video_introduction +
				"' href='http://127.0.0.1:8899/html/car_video_broadcast.html?" + item.video_id +
				"' target='_blank' class='jsx-1095092229' rel='opener'>" +
				"<span class='tw-mr-8'>" + count + "次播放</span>" +
				"<span>" + video_upload_date + "</span>" +
				"</a>" +
				"</p>" +
				"</div>" +
				"</div>" +
				"</div>";
			/**
			 * 数据不满足以下条件 直接添加
			 * 当下标等于11的时候表示前12条数据已经循环完毕   
			 * 放入第一个strs里面保存   
			 * 并清空str 
			 * 后面同理
			 */
			strs2 = "<div class='tw-flex'>" + str + "</div>";
			if (index == 11) {
				strs = "<div class='tw-flex'>" + str + "</div>";
				str = "";
			} else if (index == 23) {
				strs2 = "<div class='tw-flex'>" + str + "</div>";
				str = "";
			}
		});
		/**
		 * 两个div加在一起
		 * 在最大的div里拼接
		 */
		var strh = strs + strs2;
		$("#tw-flexxx div").remove();
		$("#tw-flexxx").append(strh);
		//总页数
		Video_page_totll = data.PageTotal

	}, "json")
}
/* 视频下一页 */
video_transform = 0;

function Video_page_Next() {

	if (video_transform <= -200) {
		video_transform = -200;
		$(".floor-title_slider-action__1wdFk span:eq(1)").addClass("swiper-button-disabled");
	} else {
		video_transform = video_transform - 100;
		//上一页按钮是否显示
		if (video_transform == -200) {
			$(".floor-title_slider-action__1wdFk span:eq(1)").addClass("swiper-button-disabled");
		}
		$(".floor-title_slider-action__1wdFk span:eq(0)").removeClass("swiper-button-disabled");

		$("#tw-flexxx").css("transform", "translate3d(" + video_transform + "%,0,0)");
	}

}

/* 视频上一页 */
function Video_page_tone() {

	if (video_transform >= 0) {
		video_transform = 0;
		$(".floor-title_slider-action__1wdFk span:eq(0)").addClass("swiper-button-disabled");
	} else {
		video_transform = video_transform + 100;
		if (video_transform == 0) {
			$(".floor-title_slider-action__1wdFk span:eq(0)").addClass("swiper-button-disabled");
		}
		$(".floor-title_slider-action__1wdFk span:eq(1)").removeClass("swiper-button-disabled");
		$("#tw-flexxx").css("transform", "translate3d(" + video_transform + "%,0,0)");
	}
}
////////////////////////////////////////////视频排行榜部分////////////////////////////////////////////////////////////////
/* 查询前十的视频 */
function video_ranking() {
	$.get(path + 'VideoController/select_all_video_ranking', function(data) {
		var str = "";
		var count = 0;
		$(data).each(function(index, item) {
			if (item.video_broadcast_count < 10000) {
				count = item.video_broadcast_count;
			} else if (item.video_broadcast_count < 100000000) {
				count = (Math.floor((item.video_broadcast_count / 10000) * 100) / 100) + "万";
			}
			//
			str += "<a href='http://127.0.0.1:8899/html/car_video_broadcast.html?" + item.video_id + "' target='_blank' title='" + item
				.video_introduction + "' class='jsx-3954343523 item-wrap'>" +
				"<div class='jsx-3954343523 rank-top top-" + (index + 1) +
				"' style='background-position: 0px -" + (index * 35) + "px;'></div>" +
				"<div class='jsx-3954343523 item'>" +
				"<div class='jsx-3954343523 title line-1 g-active-link-text'>" + item
				.video_introduction + "</div>" +
				"<div class='jsx-3954343523 stats'>" + count + "次观看</div>" +
				"</div>" +
				"</a>";
		});
		$("#ranking a").remove();
		$("#ranking").append(str);
	}, "json");
}

////////////////////////////////////////////资讯部分////////////////////////////////////////////////////////////////
var strtite = "";
/* 查询24条最新资讯 */
function index_information() {
	$.get(path + "InformationController/select_index_information", function(data) {
		var str = "";
		var wb = "";

		$(data).each(function(index, item) {

			//截取长度
			wb = item.information_title;
			if (wb.length > 10) {
				wb = wb.substring(0, 12) + "...";
			}
			//资讯标题
			if (index < 2) {
				strtite +=
					"<a class='today-news_item__27i11 today-news_hot__20X64 today-news_large__OF0D0' target='_blank' href='http://127.0.0.1:8899/html/car_information_details.html?" +
					item.information_id + "/0"  +
					"' rel='opener'>" + wb + "</a>";

			}
			//每添加3条数据 追加一个div
			if (index % 3 == 0) {
				str += "<div class='tw-overflow-hidden today-news_item-h__QO2m2'>";
			}
			//最后一个div 必须先追加 一个全部的资讯 a链接 否则无效
			if (index == 23) {

				str += "</div><div class='tw-overflow-hidden today-news_item-h__QO2m2'>" +
					"<a class='today-news_more__9plQU tw-h-full' target='_blank' href='http://127.0.0.1:8899/html/car_information.html" +
					"' rel='opener'>全部新资讯<i class='DCD_Icon icon_PC-triangle'></i></a>";
			}

			// 每次 追加3条资讯
			str +=
				"<a class='today-news_item__27i11 tw-h-full' target='_blank' href='http://127.0.0.1:8899/html/car_information_details.html?" +
				item.information_id + "/0"  + "' rel='opener'>" +
				wb + "</a>";

			//分别加上闭合div
			if (index == 2 || index == 5 || index == 8 || index == 11 || index == 14 || index == 17 ||
				index == 21) {
				str += "</div>";
			}

			//给最后一个加上闭合div
			if (index == 23) {
				str += "</div>"
			}
		});

		informationTite(strtite);
		//资讯主体部分
		$("#information div").remove();
		$("#information").append(str);
	}, "json")
}
//资讯标题追加
function informationTite(str) {
	$("#RotationTiten a").remove();
	$("#RotationTiten").append(str);
}

////////////////////////////////////////////资讯图片部分////////////////////////////////////////////////////////////////
function index_information_images() {
	$.get(path + 'Information_imagesController/select_index_Information_images', function(data) {
		var str = "";
		var str2 = "";
		$(data).each(function(index, item) {
			//每添加3条数据 追加一个div
			if (index % 3 == 0) {
				str += "<div class='banner_slide__1h5Fr'>" +
					"<a href='http://127.0.0.1:8899/html/car_information_details.html?" +
					item.information_images_id + "/0"  +
					"' target='_blank' class='slide_big__2f7j2' rel='opener'>" +
					"<div class='g-load-img-wrap' style='display: block; overflow: hidden; position: absolute; inset: 0px; z-index: 0;'>" +
					"<img src='http://120.48.47.144:8899/images/" + item.information_images_1 + "'" +
					"width='635' height='251' class='zoom'" +
					"style='position: absolute; inset: 0px; box-sizing: border-box; padding: 0px; border: none; margin: auto; display: block; width: 0px; height: 0px; min-width: 100%; max-width: 100%; min-height: 100%; max-height: 100%; object-fit: cover;'>" +
					"</div>" +
					"</a>";
			} else {
				str += "<a href='http://127.0.0.1:8899/html/car_information_details.html?" +
					item.information_images_id + "/0"  +
					"' target='_blank' class='slide_small__JwEUh' rel='opener'>" +
					"<div class='g-load-img-wrap' style='display: block; overflow: hidden; position: absolute; inset: 0px; z-index: 0;'>" +
					"<img src='http://120.48.47.144:8899/images/" + item.information_images_1 + "'" +
					"width='635' height='251' class='zoom'" +
					"style='position: absolute; inset: 0px; box-sizing: border-box; padding: 0px; border: none; margin: auto; display: block; width: 0px; height: 0px; min-width: 100%; max-width: 100%; min-height: 100%; max-height: 100%; object-fit: cover;'>" +
					"</div>" +
					"</a>";
			}
			//分别加上闭合div
			if (index == 2 || index == 5 || index == 8 || index == 11 || index == 14) {
				str += "</div>";
			}
		})
		$("#RotationImages div").remove();
		$("#RotationImages").append(str);
		//轮播图默认展示第一个
		$("#RotationImages div:eq(0)").addClass("banner_active__203dx");
		$("#RotationImages div:eq(0) a:eq(1)").addClass("slide_upper__2NKI3");
		$("#RotationImages div:eq(0) a:eq(2)").addClass("slide_upper__2NKI3");
		$("#lunboXiao>div:eq(0)").addClass("banner_active__203dx");
		//轮播图
		lunbo();
	}, "json");
}
////////////////////////////////////////////轮播图////////////////////////////////////////////////////////////////
/*保存当前图片的索引*/
let index = 0;
let btn = false;

//清除上一张图片和指示器上的指示
function clean() {
	$('#RotationImages>div:eq(' + index + ')').removeClass("banner_active__203dx");
	$('#RotationImages>div:eq(' + index + ') a:eq(1)').removeClass("slide_upper__2NKI3");
	$('#RotationImages>div:eq(' + index + ') a:eq(2)').removeClass("slide_upper__2NKI3");
	$('#lunboXiao>div:eq(' + index + ')').removeClass("banner_active__203dx");
}

//添加新的图片和指示器上的指示
function show() {
	$('#RotationImages>div:eq(' + index + ')').addClass("banner_active__203dx");
	$('#RotationImages>div:eq(' + index + ') a:eq(1)').addClass("slide_upper__2NKI3");
	$('#RotationImages>div:eq(' + index + ') a:eq(2)').addClass("slide_upper__2NKI3");
	$('#lunboXiao>div:eq(' + index + ')').addClass("banner_active__203dx");
}

function lunbo() {

	//自动播放功能（定时器）
	setInterval(function() {
		if (!btn) {
			clean();
			if (index == 4) {
				index = 0;
			} else {
				++index;
			}
			show();
		} else {
			btn = false;
		}
	}, 3000);

	// 为左方向图标绑定点击事件
	$('#RotationImages>button:eq(0)').on('click', function() {
		btn = true;
		clean();
		if (index == 0) {
			index = 4;
		} else {
			--index;
		}
		show();
	})

	// 为右方向图标绑定点击事件
	$('#RotationImages>button:eq(1)').on('click', function() {
		btn = true;
		clean();
		if (index == 4) {
			index = 0;
		} else {
			++index;
		}
		show();
	})
}

////////////////////////////////////////////查询首页品牌////////////////////////////////////////////////////////////////
function index_brand() {
	$.get(path + "BrandController/select_popularity_brand/popularity/fales", function(data) {
		str = "";
		$(data).each(function(index, item) {
			if (index == 0) {
				str +=
					"<div class='tw-mx-56 tw-absolute tw-inset-0 tw-z-9 render-item_enter__23836  tw-grid tw-gap-12  tw-grid-cols-7 md:tw-grid-cols-9 xl:tw-grid-cols-13 2xl:tw-grid-cols-16'>"

			}

			if (index == 16) {
				str += "</div>"
				str +=
					"<div class='tw-mx-56 tw-absolute tw-inset-0 tw-z-9 render-item_leave__XOAjh  tw-grid tw-gap-12  tw-grid-cols-7 md:tw-grid-cols-9 xl:tw-grid-cols-13 2xl:tw-grid-cols-16 tw-hidden'>"
			}
			str += "<div class='hot-brand_model__AOWIB'>" +
				"<a target='_blank' href='http://127.0.0.1:8899/html/car_vehicle_selection.html?" + item
				.brand_id + "," + item.brand_name + "-x-x-x-x-x-x' title='" + item
				.brand_name + "' class='hot-brand_brand-wrap__EKmo8'>" +
				"<div class='hot-brand_brand-img-wrap__29KC_'>" +
				"<div style='display:inline-block;max-width:100%;overflow:hidden;position:relative;z-index:0'>" +
				"<div style='box-sizing:border-box;display:block;max-width:100%'>" +
				"<img style='max-width:100%;display:block;margin:0;border:none;padding:0' alt=''" +
				"src='data:image/svg+xml;utf-8,&lt;svg width=&quot;40&quot; height=&quot;40&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; version=&quot;1.1&quot;/&gt;'" +
				"aria-hidden='true' role='presentation' />" +
				"</div>" +
				"<img src='http://120.48.47.144:8899/images/" + item.brand_images
				.brand_images_car_logo_url + "' alt='" + item.brand_name + "' width='40' height='40'" +
				"style='position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:cover'" +
				"class='' />" +
				"</div>" +
				"</div>" +
				"<p class='hot-brand_brand-name__2aB3u'>" + item.brand_name + "</p>" +
				"</a>" +
				"</div>"
			if (index == 31) {
				str += "</div>"
			}

		});
		$("#index_brand div").remove();
		$("#index_brand").append(str);
		to_left_show();
		to_left_show();
	}, "json");
}

/* 往左查看品牌 */
function to_left_show() {
	$("#index_brand>span:eq(0)").attr("onclick", "");
	$("#index_brand>span:eq(0)").addClass("swiper-button-disabled");
	$("#index_brand>span:eq(1)").attr("onclick", "to_right_show()");
	$("#index_brand>span:eq(1)").removeClass("swiper-button-disabled");
	$("#index_brand>span:eq(1)").removeClass("tw-hidden");
	$("#index_brand>span:eq(2)").addClass("tw-hidden");

	$("#index_brand>div:eq(0)").addClass("render-item_enter__23836");
	$("#index_brand>div:eq(1)").removeClass("render-item_enter__23836");
	$("#index_brand>div:eq(1)").addClass("render-item_leave__XOAjh");
	$("#index_brand>div:eq(1)").addClass("tw-hidden");
	$("#index_brand>div:eq(0)").removeClass("tw-hidden");
	/* $(".swiper-wrapper").animate({
		"margin-left": "0px"
	}, 500); */
}

/* 往右查看品牌 */
function to_right_show() {
	$("#index_brand>span:eq(1)").attr("onclick", "");
	$("#index_brand>span:eq(1)").addClass("tw-hidden");
	$("#index_brand>span:eq(2)").removeClass("tw-hidden");
	$("#index_brand>span:eq(0)").attr("onclick", "to_left_show()");
	$("#index_brand>span:eq(0)").removeClass("swiper-button-disabled");

	$("#index_brand>div:eq(1)").addClass("render-item_enter__23836");
	$("#index_brand>div:eq(1)").removeClass("tw-hidden");
	$("#index_brand>div:eq(0)").removeClass("render-item_enter__23836");
	$("#index_brand>div:eq(0)").addClass("render-item_leave__XOAjh");
	$("#index_brand>div:eq(0)").addClass("tw-hidden");
	/* $(".swiper-wrapper").animate({
		"margin-left": -(history_browsing_car_series_count * 306 - 1570) + "px"
	}, 500); */
}

////////////////////////////////////////////查询首页级别车系////////////////////////////////////////////////////////////////
function index_levei_series(different_countries, price) {
	strClosed_car = "";
	strSuv_car = "";
	strOther_car = "";
	$.get(path + "Car_seriesController/select_index_heand_levei_series/" + different_countries + "/" + price + "",
		function(data) {
			//轿车
			$(data.closed_car).each(function(index, item) {
				if (index == 0) {
					strClosed_car +=
						"<div class='tw-mx-56 tw-absolute tw-inset-0 tw-z-9 render-item_enter__23836 tw-grid tw-gap-12 tw-grid-cols-4 md:tw-grid-cols-5 xl:tw-grid-cols-7  2xl:tw-grid-cols-9'>"

				}
				if (index == 9) {
					strClosed_car += "</div>"
					strClosed_car +=
						"<div class='tw-mx-56 tw-absolute tw-inset-0 tw-z-9 render-item_leave__XOAjh tw-grid tw-gap-12 tw-grid-cols-4 md:tw-grid-cols-5 xl:tw-grid-cols-7  2xl:tw-grid-cols-9 tw-hidden'>"
				}
				strClosed_car += "<div class='car-list_model__aT0i_'>" +
					"<a target='_blank' href='http://127.0.0.1:8899/html/car_series_index.html?" + item
					.car_series_id  + "' title='" + item
					.car_series_name + "'>" +
					"<div class='car-list_name-wrapper__1qDJb g-active-link-text'>" +
					"<span class='car-list_series-name__33gU0 g-active-link-text'>" + item.car_series_name +
					"</span>" +
					"</div>" +
					"</a>" +
					"<ul class='car-list_wrap__3yvBf'>" +
					"<li>" +
					"<a target='_blank' href='http://127.0.0.1:8899/html/car_purchase_calculation.html?" +
					item.car_series_id + "/0"  + "'" +
					"title='" + item.car_series_name + "' rel='opener nofollow'>" +
					"<span class='car-list_name__1hkGo line-1'>购车计算</span>" +
					"</a>" +
					"</li>" +
					"<li>" +
					"<a target='_blank' href='http://127.0.0.1:8899/html/car_actual_large_picture.html?" +
					item.car_series_brand_fk_id + "/" + item.car_series_id + "/0/0' title='" + item
					.car_series_name + "'>" +
					"<span class='car-list_name__1hkGo line-1'>图库</span>" +
					"</a>" +
					"</li>" +
					"<li>" +
					"<a target='_blank' href='http://127.0.0.1:8899/html/car_information_details.html?" +
					item.information.information_id + "/" + item.car_series_id + "' title='" + item
					.car_series_name + "'>" +
					"<span class='car-list_name__1hkGo line-1'>资讯</span>" +
					"</a>" +
					"</li>" +
					"</ul>" +
					"</div>"
				if (index == 18) {
					strClosed_car += "</div>"
				}
			});
			//suv
			$(data.suv_car).each(function(index, item) {
				if (index == 0) {
					strSuv_car +=
						"<div class='tw-mx-56 tw-absolute tw-inset-0 tw-z-9 render-item_enter__23836 tw-grid tw-gap-12 tw-grid-cols-4 md:tw-grid-cols-5 xl:tw-grid-cols-7  2xl:tw-grid-cols-9'>"
				}

				if (index == 9) {
					strSuv_car += "</div>"
					strSuv_car +=
						"<div class='tw-mx-56 tw-absolute tw-inset-0 tw-z-9 render-item_leave__XOAjh tw-grid tw-gap-12 tw-grid-cols-4 md:tw-grid-cols-5 xl:tw-grid-cols-7  2xl:tw-grid-cols-9 tw-hidden'>"
				}
				strSuv_car += "<div class='car-list_model__aT0i_'>" +
					"<a target='_blank' href='http://127.0.0.1:8899/html/car_series_index.html?" + item
					.car_series_id  + "' title='" + item
					.car_series_name + "'>" +
					"<div class='car-list_name-wrapper__1qDJb g-active-link-text'>" +
					"<span class='car-list_series-name__33gU0 g-active-link-text'>" + item.car_series_name +
					"</span>" +
					"</div>" +
					"</a>" +
					"<ul class='car-list_wrap__3yvBf'>" +
					"<li>" +
					"<a target='_blank'  href='http://127.0.0.1:8899/html/car_purchase_calculation.html?" +
					item.car_series_id + "/0"  + "'" +
					"title='" + item.car_series_name + "' rel='opener nofollow'>" +
					"<span class='car-list_name__1hkGo line-1'>购车计算</span>" +
					"</a>" +
					"</li>" +
					"<li>" +
					"<a target='_blank' href='http://127.0.0.1:8899/html/car_actual_large_picture.html?" +
					item.car_series_brand_fk_id + "/" + item.car_series_id + "/0/0' title='" + item
					.car_series_name + "'>" +
					"<span class='car-list_name__1hkGo line-1'>图库</span>" +
					"</a>" +
					"</li>" +
					"<li>" +
					"<a target='_blank'href='http://127.0.0.1:8899/html/car_information_details.html?" +
					item.information.information_id + "/" + item.car_series_id +  "' title='" + item
					.car_series_name + "'>" +
					"<span class='car-list_name__1hkGo line-1'>资讯</span>" +
					"</a>" +
					"</li>" +
					"</ul>" +
					"</div>"
				if (index == 18) {
					strSuv_car += "</div>"
				}
			});
			//其他
			$(data.other_car).each(function(index, item) {
				if (index == 0) {
					strOther_car +=
						"<div class='tw-mx-56 tw-absolute tw-inset-0 tw-z-9 render-item_enter__23836 tw-grid tw-gap-12 tw-grid-cols-4 md:tw-grid-cols-5 xl:tw-grid-cols-7  2xl:tw-grid-cols-9'>"
				}

				if (index == 9) {
					strOther_car += "</div>"
					strOther_car +=
						"<div class='tw-mx-56 tw-absolute tw-inset-0 tw-z-9 render-item_leave__XOAjh tw-grid tw-gap-12 tw-grid-cols-4 md:tw-grid-cols-5 xl:tw-grid-cols-7  2xl:tw-grid-cols-9 tw-hidden'>"
				}
				strOther_car += "<div class='car-list_model__aT0i_'>" +
					"<a target='_blank' href='http://127.0.0.1:8899/html/car_series_index.html?" + item
					.car_series_id  + "' title='" + item
					.car_series_name + "'>" +
					"<div class='car-list_name-wrapper__1qDJb g-active-link-text'>" +
					"<span class='car-list_series-name__33gU0 g-active-link-text'>" + item.car_series_name +
					"</span>" +
					"</div>" +
					"</a>" +
					"<ul class='car-list_wrap__3yvBf'>" +
					"<li>" +
					"<a target='_blank'  href='http://127.0.0.1:8899/html/car_purchase_calculation.html?" +
					item.car_series_id + "/0"  + "'" +
					"title='" + item.car_series_name + "' rel='opener nofollow'>" +
					"<span class='car-list_name__1hkGo line-1'>购车计算</span>" +
					"</a>" +
					"</li>" +
					"<li>" +
					"<a target='_blank' href='http://127.0.0.1:8899/html/car_actual_large_picture.html?" +
					item.car_series_brand_fk_id + "/" + item.car_series_id + "/0/0' title='" + item
					.car_series_name + "'>" +
					"<span class='car-list_name__1hkGo line-1'>图库</span>" +
					"</a>" +
					"</li>" +
					"<li>" +
					"<a target='_blank' href='http://127.0.0.1:8899/html/car_information_details.html?" +
					item.information.information_id + "/" + item.car_series_id +"' title='" + item
					.car_series_name + "'>" +
					"<span class='car-list_name__1hkGo line-1'>资讯</span>" +
					"</a>" +
					"</li>" +
					"</ul>" +
					"</div>"
				if (index == 18) {
					strOther_car += "</div>"
				}
			})

			/* 按钮部分 */
			var closed_butt =
				"<span class=\"swiper-button_button-wrapper__2tAN0 button-wrapper prev swiper-button-disabled\" style=\"position:absolute;left:4px;top:7px;z-index:9\">" +
				"<button type=\"button\" class=\"swiper-button_swiper-button__1wwoe swiper-button gray\" onclick=\"\">" +
				"<i class=\"DCD_Icon icon_triangle_left\"></i>" +
				"</button>" +
				"</span>" +
				"<span class=\"swiper-button_button-wrapper__2tAN0 button-wrapper next\" style=\"position:absolute;right:15px;top:7px;z-index:9\">" +
				"<button type=\"button\" class=\"swiper-button_swiper-button__1wwoe swiper-button gray\" onclick=\"tos_right_show(1)\">" +
				"<i class=\"DCD_Icon icon_triangle_right\"></i>" +
				"</button>" +
				"</span>" +
				"<span class=\"cus-button-next-click tw-hidden\">" +
				"<a target=\"_blank\" href='http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-1-x-x-x-x' class=\"g-active-link-text\">更多</a>" +
				"</span>"
			var Suvr_butt =
				"<span class=\"swiper-button_button-wrapper__2tAN0 button-wrapper prev swiper-button-disabled\" style=\"position:absolute;left:4px;top:7px;z-index:9\">" +
				"<button type=\"button\" class=\"swiper-button_swiper-button__1wwoe swiper-button gray\" onclick=\"\">" +
				"<i class=\"DCD_Icon icon_triangle_left\"></i>" +
				"</button>" +
				"</span>" +
				"<span class=\"swiper-button_button-wrapper__2tAN0 button-wrapper next\" style=\"position:absolute;right:15px;top:7px;z-index:9\">" +
				"<button type=\"button\" class=\"swiper-button_swiper-button__1wwoe swiper-button gray\" onclick=\"tos_right_show(2)\">" +
				"<i class=\"DCD_Icon icon_triangle_right\"></i>" +
				"</button>" +
				"</span>" +
				"<span class=\"cus-button-next-click tw-hidden\">" +
				"<a target=\"_blank\" href='http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-2-x-x-x-x' class=\"g-active-link-text\">更多</a>" +
				"</span>"
			var Other_butt =
				"<span class=\"swiper-button_button-wrapper__2tAN0 button-wrapper prev swiper-button-disabled\" style=\"position:absolute;left:4px;top:7px;z-index:9\">" +
				"<button type=\"button\" class=\"swiper-button_swiper-button__1wwoe swiper-button gray\" onclick=\"\">" +
				"<i class=\"DCD_Icon icon_triangle_left\"></i>" +
				"</button>" +
				"</span>" +
				"<span class=\"swiper-button_button-wrapper__2tAN0 button-wrapper next\" style=\"position:absolute;right:15px;top:7px;z-index:9\">" +
				"<button type=\"button\" class=\"swiper-button_swiper-button__1wwoe swiper-button gray\" onclick=\"tos_right_show(3)\">" +
				"<i class=\"DCD_Icon icon_triangle_right\"></i>" +
				"</button>" +
				"</span>" +
				"<span class=\"cus-button-next-click tw-hidden\">" +
				"<a target=\"_blank\" href='http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-3-x-x-x-x' class=\"g-active-link-text\">更多</a>" +
				"</span>"

			$("#closed_car").children().remove();
			$("#closed_car").append(strClosed_car);
			$("#closed_car").append(closed_butt);

			$("#Suv_car").children().remove();
			$("#Suv_car").append(strSuv_car);
			$("#Suv_car").append(Suvr_butt);

			$("#Other_car").children().remove();
			$("#Other_car").append(strOther_car);
			$("#Other_car").append(Other_butt);
			//长度不够隐藏右移
			if (data.closed_car.length <= 9) {
				//长度不够左右都不能展示出来
				$("#closed_car>span:eq(1)").addClass("swiper-button-disabled");
				$("#closed_car>span:eq(0)").addClass("swiper-button-disabled");
				//长度不够左右的点击事件为空
				$("#closed_car>span:eq(0)>button").attr("onclick", "");
				$("#closed_car>span:eq(1)>button").attr("onclick", "");
				$("#closed_car>span:eq(2)").addClass("tw-hidden")
			} else {
				$("#closed_car>span:eq(1)").removeClass("swiper-button-disabled");
				$("#closed_car>span:eq(1)").removeClass("tw-hidden");
				$("#closed_car>span:eq(1)>button").attr("onclick", "tos_right_show(1)");
			}
			if (data.suv_car.length <= 9) {
				//长度不够左右都不能展示出来
				$("#Suv_car>span:eq(0)").addClass("swiper-button-disabled");
				$("#Suv_car>span:eq(1)").addClass("swiper-button-disabled");
				$("#Suv_car>span:eq(0)>button").attr("onclick", "");
				$("#Suv_car>span:eq(1)>button").attr("onclick", "");
				$("#Suv_car>span:eq(2)").addClass("tw-hidden")
			} else {
				$("#Suv_car>span:eq(1)").removeClass("swiper-button-disabled");
				$("#Suv_car>span:eq(1)").removeClass("tw-hidden");
				$("#Suv_car>span:eq(1)>button").attr("onclick", "tos_right_show(2)");
			}
			if (data.other_car.length <= 9) {
				//长度不够左右都不能展示出来
				$("#Other_car>span:eq(0)").addClass("swiper-button-disabled");
				$("#Other_car>span:eq(1)").addClass("swiper-button-disabled");
				$("#Other_car>span:eq(0)>button").attr("onclick", "");
				$("#Other_car>span:eq(1)>button").attr("onclick", "");

				$("#Other_car>span:eq(2)").addClass("tw-hidden")
			} else {
				$("#Other_car>span:eq(1)").removeClass("swiper-button-disabled");
				$("#Other_car>span:eq(1)").removeClass("tw-hidden");
				$("#Other_car>span:eq(1)>button").attr("onclick", "tos_right_show(3)");
			}
		}, "json")
}
/* 往左查看品牌 */
function tos_left_show(a) {
	if (a == 1) {
		$("#closed_car>span:eq(0)>button").attr("onclick", "");
		$("#closed_car>span:eq(0)").addClass("swiper-button-disabled");
		$("#closed_car>span:eq(1)>button").attr("onclick", "tos_right_show(1)");
		$("#closed_car>span:eq(1)").removeClass("swiper-button-disabled");
		$("#closed_car>span:eq(1)").removeClass("tw-hidden");
		$("#closed_car>span:eq(2)").addClass("tw-hidden");

		$("#closed_car>div:eq(0)").addClass("render-item_enter__23836");
		$("#closed_car>div:eq(0)").removeClass("render-item_leave__XOAjh");
		$("#closed_car>div:eq(1)").removeClass("render-item_enter__23836");
		$("#closed_car>div:eq(1)").addClass("render-item_leave__XOAjh");
		$("#closed_car>div:eq(1)").addClass("tw-hidden");
		$("#closed_car>div:eq(0)").removeClass("tw-hidden");
	} else if (a == 2) {
		$("#Suv_car>span:eq(0)>button").attr("onclick", "");
		$("#Suv_car>span:eq(0)").addClass("swiper-button-disabled");
		$("#Suv_car>span:eq(1)>button").attr("onclick", "tos_right_show(2)");
		$("#Suv_car>span:eq(1)").removeClass("swiper-button-disabled");
		$("#Suv_car>span:eq(1)").removeClass("tw-hidden");
		$("#Suv_car>span:eq(2)").addClass("tw-hidden");

		$("#Suv_car>div:eq(0)").addClass("render-item_enter__23836");
		$("#Suv_car>div:eq(0)").removeClass("render-item_leave__XOAjh");
		$("#Suv_car>div:eq(1)").removeClass("render-item_enter__23836");
		$("#Suv_car>div:eq(1)").addClass("render-item_leave__XOAjh");
		$("#Suv_car>div:eq(1)").addClass("tw-hidden");
		$("#Suv_car>div:eq(0)").removeClass("tw-hidden");
	} else if (a == 3) {
		$("#Other_car>span:eq(0)>button").attr("onclick", "");
		$("#Other_car>span:eq(0)").addClass("swiper-button-disabled");
		$("#Other_car>span:eq(1)>button").attr("onclick", "tos_right_show(3)");
		$("#Other_car>span:eq(1)").removeClass("swiper-button-disabled");
		$("#Other_car>span:eq(1)").removeClass("tw-hidden");
		$("#Other_car>span:eq(2)").addClass("tw-hidden");

		$("#Other_car>div:eq(0)").addClass("render-item_enter__23836");
		$("#Other_car>div:eq(0)").removeClass("render-item_leave__XOAjh");
		$("#Other_car>div:eq(1)").removeClass("render-item_enter__23836");
		$("#Other_car>div:eq(1)").addClass("render-item_leave__XOAjh");
		$("#Other_car>div:eq(1)").addClass("tw-hidden");
		$("#Other_car>div:eq(0)").removeClass("tw-hidden");
	}


}

/* 往右查看品牌 */
function tos_right_show(a) {
	if (a == 1) {
		$("#closed_car>span:eq(1)>button").attr("onclick", ""); //移除点击事件
		$("#closed_car>span:eq(1)").addClass("tw-hidden"); //隐藏右移
		$("#closed_car>span:eq(2)").removeClass("tw-hidden"); //展示更多
		$("#closed_car>span:eq(0)>button").attr("onclick", "tos_left_show(1)"); //为左移加入点击事件
		$("#closed_car>span:eq(0)").removeClass("swiper-button-disabled"); //移除右移的隐藏

		$("#closed_car>div:eq(1)").addClass("render-item_enter__23836"); //
		$("#closed_car>div:eq(1)").removeClass("tw-hidden");
		$("#closed_car>div:eq(0)").removeClass("render-item_enter__23836");
		$("#closed_car>div:eq(0)").addClass("render-item_leave__XOAjh");
		$("#closed_car>div:eq(0)").addClass("tw-hidden");
	} else if (a == 2) {
		$("#Suv_car>span:eq(1)>button").attr("onclick", ""); //移除点击事件
		$("#Suv_car>span:eq(1)").addClass("tw-hidden"); //隐藏右移
		$("#Suv_car>span:eq(2)").removeClass("tw-hidden"); //展示更多
		$("#Suv_car>span:eq(0)>button").attr("onclick", "tos_left_show(2)"); //为左移加入点击事件
		$("#Suv_car>span:eq(0)").removeClass("swiper-button-disabled"); //移除右移的隐藏

		$("#Suv_car>div:eq(1)").addClass("render-item_enter__23836"); //
		$("#Suv_car>div:eq(1)").removeClass("tw-hidden");
		$("#Suv_car>div:eq(0)").removeClass("render-item_enter__23836");
		$("#Suv_car>div:eq(0)").addClass("render-item_leave__XOAjh");
		$("#Suv_car>div:eq(0)").addClass("tw-hidden");
	} else if (a == 3) {
		$("#Other_car>span:eq(1)>button").attr("onclick", ""); //移除点击事件
		$("#Other_car>span:eq(1)").addClass("tw-hidden"); //隐藏右移
		$("#Other_car>span:eq(2)").removeClass("tw-hidden"); //展示更多
		$("#Other_car>span:eq(0)>button").attr("onclick", "tos_left_show(3)"); //为左移加入点击事件
		$("#Other_car>span:eq(0)").removeClass("swiper-button-disabled"); //移除右移的隐藏

		$("#Other_car>div:eq(1)").addClass("render-item_enter__23836"); //
		$("#Other_car>div:eq(1)").removeClass("tw-hidden");
		$("#Other_car>div:eq(0)").removeClass("render-item_enter__23836");
		$("#Other_car>div:eq(0)").addClass("render-item_leave__XOAjh");
		$("#Other_car>div:eq(0)").addClass("tw-hidden");
	}

}

var hh = 0;
var time

function limouseover() {

	var s;
	$(".popular-model_j-condition-list__YmVo6>li").mouseenter(function() {
		//获取当前悬浮在那个li上
		s = $(this).index();
		$(".popular-model_j-condition-list__YmVo6>li:eq(0)").removeClass("popular-model_active__3a_y0");
		$(".popular-model_j-condition-list__YmVo6>li:eq(0)").removeClass("active-selector")

		/* $(".popular-model_j-condition-list__YmVo6>li:eq("+s+")") */
		time = setTimeout(function() {
			//分别添加样式
			$(this).addClass("popular-model_active__3a_y0");
			$(this).addClass("active-selector")
			if (s > 6) {
				$(".popular-model_scroll-box__1QRA9").css("width", "73px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(" + (((s - 1) *
						112) + 10) +
					"px)");
			}
			if (s == 0) {
				$(".popular-model_scroll-box__1QRA9").css("width", "38px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(10px)");
				index_levei_series(0, "0,0")
			} else if (s == 1) {
				$(".popular-model_scroll-box__1QRA9").css("width", "38px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(95px)");
				index_levei_series(1, "0,0")
			} else if (s == 2) {
				$(".popular-model_scroll-box__1QRA9").css("width", "38px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(181px)");
				index_levei_series(2, "0,0")
			} else if (s == 3) {
				$(".popular-model_scroll-box__1QRA9").css("width", "38px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(266px)");
				index_levei_series(3, "0,0")
			} else if (s == 4) {
				$(".popular-model_scroll-box__1QRA9").css("width", "38px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(351px)");
				index_levei_series(6, "0,0")
			} else if (s == 5) {
				$(".popular-model_scroll-box__1QRA9").css("width", "73px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(439px)");
				index_levei_series(0, "0,10")
			} else if (s == 6) {
				$(".popular-model_scroll-box__1QRA9").css("width", "67px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(562px)");
				index_levei_series(0, "10,15")
			} else if (s == 7) {
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(675px)");
				index_levei_series(0, "15,20")
			} else if (s == 8) {
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(793px)");
				index_levei_series(0, "20,25")
			} else if (s == 9) {
				$(".popular-model_scroll-box__1QRA9").css("width", "77px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(913px)");
				index_levei_series(0, "25,30")
			} else if (s == 10) {
				$(".popular-model_scroll-box__1QRA9").css("width", "77px");
				$(".popular-model_scroll-box__1QRA9").css("transform", "translateX(1028px)");
				index_levei_series(0, "0,50")
			}
		}, 500);
	})
	//移出 时移除样式
	$(".popular-model_j-condition-list__YmVo6>li").mouseleave(function() {
		//移除样式
		clearInterval(time);
		$(this).removeClass("popular-model_active__3a_y0");
		$(this).removeClass("active-selector")
		if (s < 5) {
			$(".popular-model_scroll-box__1QRA9").css("width", "36px");
		}
	})
}

//新车部分
function new_series() {
	$.get(path + "Car_seriesController/select_index_new_series", function(data) {
		var str = "";
		$(data).each(function(index, item) {
			str += "<li class='jsx-838702607 new-car_new-car-item__2hHed new-car_online__hgfmQ'>" +
				"<a target='_blank' href='http://127.0.0.1:8899/html/car_series_index.html?" + item
				.car_series_id  +
				"' class='jsx-838702607 new-car_item-time-link__1508e'>" +
				"<div class='jsx-838702607 new-car_item-time-fix-wrap__gNRX2'>" +
				"<p class='jsx-838702607 new-car_item-time-wrap__NcYV_'>" +
				"<span class='jsx-838702607 item-time'>" + item.car_series_list_date + "</span>" +
				"<span class='jsx-838702607 new-car_item-time-status-before__3UfAQ'>.</span>" +
				"<span class='jsx-838702607 new-car_item-time-status__2jiVK'>已上市</span>" +
				"</p>" +
				"<p class='jsx-838702607 new-car_item-tag__2XSh-'>新增车型</p>" +
				"<p class='jsx-838702607 new-car_item-title-wrap__2V3nb'>" +
				"<span class='jsx-838702607 new-car_item-title__2ZX_C g-active-link-text g-one-line-text new-car_hastag__3bt4W'>" +
				item.car_series_name + "</span>" +
				"</p>" +
				"<p class='jsx-838702607 new-car_item-price__MK01E'>" + item.min_manufacturer_price +
				"-" + item.max_manufacturer_price + "<!-- -->万</p>" +
				"</div>" +
				"<div class='jsx-838702607 car-image-type-1 new-car_car-image-wrap__BAqvB car-image-wrap'>" +
				"<div class='jsx-838702607 new-car_homepage-new-car-img__3Ee8l'>" +
				"<div style='display:inline-block;max-width:100%;overflow:hidden;position:relative;z-index:0'>" +
				"<div style='box-sizing:border-box;display:block;max-width:100%'>" +
				"<img style='max-width:100%;display:block;margin:0;border:none;padding:0' " +
				"src='data:image/svg+xml;utf-8,&lt;svg width=&quot;126&quot; height=&quot;84&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; version=&quot;1.1&quot;/&gt;'" +
				"aria-hidden='true' role='presentation' />" +
				"</div>" +
				"<img src='" + imagePath + item.car_series_images_url_1 + "'" +
				"alt='" + item.car_series_name + "' width='126' height='84'" +
				"style='position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%;object-fit:cover'" +
				"class='' />" +
				"</div>" +
				"</div>" +
				"</div>" +
				"</a>" +
				"<a target='_blank' href='http://127.0.0.1:8899/html/car_information_details.html?"+ item.information.information_id +
				"/"+item.car_series_id+"' class='jsx-838702607 new-car_item-article__2Z-CM'>" +
				"<span class='jsx-838702607 new-car_max-width__2EnGx new-car_item-one-line-text__3f8lS'>" +
				item.information.information_title + "</span>" +
				"<span class='jsx-838702607 new-car_more__1yepc'></span>" +
				"</a>" +
				"</li>"
		})
		$("#newSweiec li").remove();
		$("#newSweiec").append(str);
		//修改热门 国别  价格 src 路径
		car_series_src();
	}, "json")
}

//修改热门 国别  价格 src 路径
function car_series_src() {
	//国别
	//"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-x-x-x-x-x"+(user_id !=0?"//"+token:"")+""
	$("#car_series_src>li a:eq(0)").attr("href", "http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-x-x-x-x-x");
	$("#car_series_src>li a:eq(1)").attr("href", "http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-x-x-x-1-x");
	$("#car_series_src>li a:eq(2)").attr("href", "http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-x-x-x-2-x");
	$("#car_series_src>li a:eq(3)").attr("href", "http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-x-x-x-3-x");
	$("#car_series_src>li a:eq(4)").attr("href", "http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-x-x-x-4-x");
	//价格
	$("#car_series_src>li a:eq(5)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-0,10-x-x-x-x-x");
	$("#car_series_src>li a:eq(6)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-10,15-x-x-x-x-x");
	$("#car_series_src>li a:eq(7)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-15,20-x-x-x-x-x");
	$("#car_series_src>li a:eq(8)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-20,25-x-x-x-x-x");
	$("#car_series_src>li a:eq(9)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-25,30-x-x-x-x-x");
	$("#car_series_src>li a:eq(10)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-50,+-x-x-x-x-x" );
	//修改最上面车的链接
	$(".type-list_type-list__2hArU a:eq(0)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-1-x-x-x-x" )
	$(".type-list_type-list__2hArU a:eq(1)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-2-x-x-x-x" )
	$(".type-list_type-list__2hArU a:eq(2)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-3-x-x-x-x" )
	$(".type-list_type-list__2hArU a:eq(3)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-4-x-x-x-x" )
	$(".type-list_type-list__2hArU a:eq(4)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-5-x-x-x-x" )
	$(".type-list_type-list__2hArU a:eq(5)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-6-x-x-x-x" )
	$(".type-list_type-list__2hArU a:eq(6)").attr("href",
		"http://127.0.0.1:8899/html/car_vehicle_selection.html?x-x-7-x-x-x-x" )

	//登录
	$("#login_button>a").attr("href", "http://127.0.0.1:8899/html/car_login.html?car_index");
}
